package java_thinking.unit_21._21_6;

import java.util.concurrent.Executor;

/**
 * @Desc:   6-5 为每个请求启动一个新线程的 Executor
 *          该新线程以异步的方式执行
 * @author: cww
 * @DateTime: 2019/6/11 8:52
 */

public class ThreadPerTaskExecutor implements Executor {
    @Override
    public void execute(Runnable command) {
        new Thread(command).start();
    }
}
